package com.wpen.unit.web.dto.system;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.wpen.unit.commun.BaseRequest;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Schema(description = "用户密码-密码修改(请求)")
@Data
@EqualsAndHashCode(callSuper = false)
public class ChangePwdRequest extends BaseRequest implements Serializable {
    private static final long serialVersionUID = 3748013572408380531L;

    @Schema(description = "登录密码", required = true)
    @NotBlank
    @Size(min = 6, max = 16)
    private String loginPwd;
    @Schema(description = "新密码", required = true)
    @NotBlank
    @Size(min = 6, max = 16)
    private String newpwd;

}